package com.duanjw.springboot.mongodb.repository;

import com.duanjw.springboot.mongodb.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends MongoRepository<User, String> {
    /**
     *
     * @param name
     * @param pageable
     * @return
     */
    Page<User> findByName(String name, Pageable pageable);

}